package com.yuyuan.domain;

import java.io.Serializable;
import java.util.Date;

import org.springframework.format.annotation.DateTimeFormat;

public class Plant implements Serializable{

	/**
	 * 
	 */
	private static final long serialVersionUID = 1L;
	private Integer id;
	private String name;
	@DateTimeFormat(pattern = "yyyy-MM-dd")
	private Date created;// 创建日期
	private String mx;// 描述
	private Integer cid;// 植物分类id
	private String cname;// 植物分类名称
	public Integer getId() {
		return id;
	}
	public void setId(Integer id) {
		this.id = id;
	}
	public String getName() {
		return name;
	}
	public void setName(String name) {
		this.name = name;
	}
	public Date getCreated() {
		return created;
	}
	public void setCreated(Date created) {
		this.created = created;
	}
	public String getMx() {
		return mx;
	}
	public void setMx(String mx) {
		this.mx = mx;
	}
	public Integer getCid() {
		return cid;
	}
	public void setCid(Integer cid) {
		this.cid = cid;
	}
	public String getCname() {
		return cname;
	}
	public void setCname(String cname) {
		this.cname = cname;
	}
	public static long getSerialversionuid() {
		return serialVersionUID;
	}
	@Override
	public String toString() {
		return "Plant [id=" + id + ", name=" + name + ", created=" + created + ", mx=" + mx + ", cid=" + cid
				+ ", cname=" + cname + "]";
	}
	public Plant(Integer id, String name, Date created, String mx, Integer cid, String cname) {
		super();
		this.id = id;
		this.name = name;
		this.created = created;
		this.mx = mx;
		this.cid = cid;
		this.cname = cname;
	}
	public Plant() {
		super();
		// TODO Auto-generated constructor stub
	}
	
}
